package com.durian.financial.api.domain;

import com.durian.common.core.annotation.Excel;
import com.durian.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 风控公寓授信子对象 t_fk_business_credit_sub
 * 
 * @author durian
 * @date 2022-06-28
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class FkBusinessCreditSub extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 关联t_fk_business_credit */
    @Excel(name = "关联t_fk_business_credit")
    private Long creditId;

    /** 资金方id，关联t_m_capital表 */
    @Excel(name = "资金方id，关联t_m_capital表")
    private Long capitalId;

    /** 产品id，关联t_jr_product，取产品的授信额度 */
    @Excel(name = "产品id，关联t_jr_product，取产品的授信额度")
    private Long productId;

    /** 总授信额度 */
    @Excel(name = "总授信额度")
    private BigDecimal totalCreditline;

    /** 维数公寓总剩余可用额度 */
    private BigDecimal surplusCreditlineCount;

    /** 已用授信额度 */
    @Excel(name = "已用授信额度")
    private BigDecimal usedCreditline;

    /** 月度授信额度 */
    @Excel(name = "月度授信额度")
    private BigDecimal monthlyTotalCreditline;

    /** 月度已用授信额度 */
    @Excel(name = "月度已用授信额度")
    private BigDecimal monthlyUsedCreditline;

    /** 维数公寓月剩余可用额度 */
    private BigDecimal monthlyCreditlineCount;


    /** 资金方识别码 */
    @Excel(name = "资金方识别码")
    private String appid;

    /** 预留字段1 */
    @Excel(name = "预留字段1")
    private BigDecimal reserve1;

    /** 预留字段2 */
    @Excel(name = "预留字段2")
    private Long reserve2;

    /** 预留字段3 */
    @Excel(name = "预留字段3")
    private String reserve3;

    /** 预留字段4 */
    @Excel(name = "预留字段4")
    private String reserve4;

    /** 预留字段5 */
    @Excel(name = "预留字段5")
    private String reserve5;

    /** 删除标识   0：未删除、1：删除 */
    @Excel(name = "删除标识   0：未删除、1：删除")
    private Integer delFlg;

    /** 创建用户id */
    @Excel(name = "创建用户id")
    private Long createUserid;

    /** 更新用户id */
    @Excel(name = "更新用户id")
    private Long updateUserid;

}
